Share via


NamespaceInfo Class [IIS 7 and higher]

Contains namespace references similar to the Import directive.

Syntax

class NamespaceInfo : EmbeddedObject

Methods

This class contains no methods.

Properties

The following table lists the properties exposed by the NamespaceInfo class.

Name

Description

AutoImportVBNamespace

A read/write boolean value. true if the Microsoft.VisualBasic namespace is imported automatically; otherwise, false. The default is true.

NoteNote:
For ASP.NET pages written by using Visual Basic, the VisualBasic namespace is imported automatically unless the AutoImportVBNamespace property is set to false.

Namespaces

An array of NamespaceElement values that specify namespace references.

NoteNote:
No validation is performed to verify that the namespace references are valid.

Subclasses

This class contains no subclasses.

Remarks

Instances of this class are contained in the Namespaces property of the PagesSection class.

Each NamespaceInfo object is the same as an Import (<%@ Import %>) directive that applies to all pages and controls in the scope of the configuration file. The Import directive enables you to import a namespace into your ASP.NET page, which makes all its classes available for use on your page.

Inheritance Hierarchy

EmbeddedObject

   NamespaceInfo

Requirements

Type

Description

Client

Requires IIS 7 on Windows Vista.

Server

Requires IIS 7 on Windows Server 2008.

Product

IIS 7

MOF file

WebAdministration.mof

See Also

Reference

EmbeddedObject Class [IIS 7 and higher]

NamespaceElement Class [IIS 7 and higher]

PagesSection Class [IIS 7 and higher]

NamespaceCollection

NamespaceInfo

Other Resources

Microsoft.VisualBasic Namespace